#!/bin/bash
#

pid=`docker container inspect httpserver -f {{.State.Pid}}`
ip=`nsenter -t $pid -n ip a s eth0 | grep -oP '(?:\d+\.){3}\d+?(?=/)'`
echo "container ip is: $ip"

